home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-09-03 | 712 b | 31 lines | [TEXT/MPS ] |
- #
- # CODE - compile and link a FORTRAN program
- # into a code resource (with compile options)
- # for now, it always has ID = 42, type = CODE.
- # It also seems that the {file} name MUST be uppercase.
- #
-
- if {#} < 1
- beep
- echo "usage: Run filename <options>"
- exit
- end
-
- set file "{1}" # get filename from arguments
- shift # remove it, leaving options
-
- FORTRAN {file}.f -opt=1 -extended {parameters}
- Link -rt xCOD=42 -w -m "{file}" ∂
- -t rsrc -c RSED ∂
- -sn Main="{file}" ∂
- -sn f_RunTime="{file}" ∂
- -sn f_Intrinsics="{file}" ∂
- {file}.f.o ∂
- "{FLibraries}FORTRANLib.o" ∂
- "{FLibraries}IntrinsicLib.o" ∂
- "{FLibraries}FSANELib.o" ∂
- "{Libraries}Interface.o" ∂
- "{Libraries}Runtime.o" ∂
- -o "{file}.code"
-
-